Optimal. Leaf size=82 \[ \frac {\tan ^{-1}\left (\frac {\sqrt {2 d e-f}+2 e x}{\sqrt {2 d e+f}}\right )}{\sqrt {2 d e+f}}-\frac {\tan ^{-1}\left (\frac {\sqrt {2 d e-f}-2 e x}{\sqrt {2 d e+f}}\right )}{\sqrt {2 d e+f}} \]
________________________________________________________________________________________
Rubi [A] time = 0.11, antiderivative size = 82, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 3, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.115, Rules used = {1161, 618, 204} \begin {gather*} \frac {\tan ^{-1}\left (\frac {\sqrt {2 d e-f}+2 e x}{\sqrt {2 d e+f}}\right )}{\sqrt {2 d e+f}}-\frac {\tan ^{-1}\left (\frac {\sqrt {2 d e-f}-2 e x}{\sqrt {2 d e+f}}\right )}{\sqrt {2 d e+f}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 204
Rule 618
Rule 1161
Rubi steps
\begin {align*} \int \frac {d+e x^2}{d^2+f x^2+e^2 x^4} \, dx &=\frac {\int \frac {1}{\frac {d}{e}-\frac {\sqrt {2 d e-f} x}{e}+x^2} \, dx}{2 e}+\frac {\int \frac {1}{\frac {d}{e}+\frac {\sqrt {2 d e-f} x}{e}+x^2} \, dx}{2 e}\\ &=-\frac {\operatorname {Subst}\left (\int \frac {1}{-\frac {2 d e+f}{e^2}-x^2} \, dx,x,-\frac {\sqrt {2 d e-f}}{e}+2 x\right )}{e}-\frac {\operatorname {Subst}\left (\int \frac {1}{-\frac {2 d e+f}{e^2}-x^2} \, dx,x,\frac {\sqrt {2 d e-f}}{e}+2 x\right )}{e}\\ &=-\frac {\tan ^{-1}\left (\frac {\sqrt {2 d e-f}-2 e x}{\sqrt {2 d e+f}}\right )}{\sqrt {2 d e+f}}+\frac {\tan ^{-1}\left (\frac {\sqrt {2 d e-f}+2 e x}{\sqrt {2 d e+f}}\right )}{\sqrt {2 d e+f}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 0.11, size = 181, normalized size = 2.21 \begin {gather*} \frac {\frac {\left (\sqrt {f^2-4 d^2 e^2}+2 d e-f\right ) \tan ^{-1}\left (\frac {\sqrt {2} e x}{\sqrt {f-\sqrt {f^2-4 d^2 e^2}}}\right )}{\sqrt {f-\sqrt {f^2-4 d^2 e^2}}}+\frac {\left (\sqrt {f^2-4 d^2 e^2}-2 d e+f\right ) \tan ^{-1}\left (\frac {\sqrt {2} e x}{\sqrt {\sqrt {f^2-4 d^2 e^2}+f}}\right )}{\sqrt {\sqrt {f^2-4 d^2 e^2}+f}}}{\sqrt {2} \sqrt {f^2-4 d^2 e^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {d+e x^2}{d^2+f x^2+e^2 x^4} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.74, size = 162, normalized size = 1.98 \begin {gather*} \left [-\frac {\sqrt {-2 \, d e - f} \log \left (\frac {e^{2} x^{4} - {\left (4 \, d e + f\right )} x^{2} + d^{2} - 2 \, {\left (e x^{3} - d x\right )} \sqrt {-2 \, d e - f}}{e^{2} x^{4} + f x^{2} + d^{2}}\right )}{2 \, {\left (2 \, d e + f\right )}}, \frac {\sqrt {2 \, d e + f} \arctan \left (\frac {e x}{\sqrt {2 \, d e + f}}\right ) + \sqrt {2 \, d e + f} \arctan \left (\frac {{\left (e^{2} x^{3} + {\left (d e + f\right )} x\right )} \sqrt {2 \, d e + f}}{2 \, d^{2} e + d f}\right )}{2 \, d e + f}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 1.09, size = 1642, normalized size = 20.02
result too large to display
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.04, size = 71, normalized size = 0.87 \begin {gather*} -\frac {\arctan \left (\frac {-2 e x +\sqrt {2 d e -f}}{\sqrt {2 d e +f}}\right )}{\sqrt {2 d e +f}}+\frac {\arctan \left (\frac {2 e x +\sqrt {2 d e -f}}{\sqrt {2 d e +f}}\right )}{\sqrt {2 d e +f}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {e x^{2} + d}{e^{2} x^{4} + f x^{2} + d^{2}}\,{d x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 4.52, size = 98, normalized size = 1.20 \begin {gather*} \frac {\mathrm {atan}\left (\frac {f^2\,x-\frac {x\,{\left (f+2\,d\,e\right )}^2}{2}+\frac {f\,x\,\left (f+2\,d\,e\right )}{2}+2\,e^2\,f\,x^3-e^2\,x^3\,\left (f+2\,d\,e\right )}{\left (2\,d\,f-d\,\left (f+2\,d\,e\right )\right )\,\sqrt {f+2\,d\,e}}\right )+\mathrm {atan}\left (\frac {e\,x}{\sqrt {f+2\,d\,e}}\right )}{\sqrt {f+2\,d\,e}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.56, size = 122, normalized size = 1.49 \begin {gather*} - \frac {\sqrt {- \frac {1}{2 d e + f}} \log {\left (- \frac {d}{e} + x^{2} + \frac {x \left (- 2 d e \sqrt {- \frac {1}{2 d e + f}} - f \sqrt {- \frac {1}{2 d e + f}}\right )}{e} \right )}}{2} + \frac {\sqrt {- \frac {1}{2 d e + f}} \log {\left (- \frac {d}{e} + x^{2} + \frac {x \left (2 d e \sqrt {- \frac {1}{2 d e + f}} + f \sqrt {- \frac {1}{2 d e + f}}\right )}{e} \right )}}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________